home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / octa209s.zip / octave-2.09 / libs / kpathsea / c-dir.h < prev    next >
C/C++ Source or Header  |  1995-06-25  |  1KB  |  45 lines

  1. /* c-dir.h: directory headers.
  2.  
  3. Copyright (C) 1992, 93, 94 Free Software Foundation, Inc.
  4.  
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.  */
  18.  
  19. #ifndef KPATHSEA_C_DIR_H
  20. #define KPATHSEA_C_DIR_H
  21.  
  22. /* Use struct dirent instead of struct direct.  */
  23. #ifdef HAVE_DIRENT_H
  24. #include <dirent.h>
  25. #define NAMLEN(dirent) strlen ((dirent)->d_name)
  26. #else /* not DIRENT */
  27. #define dirent direct
  28. #define NAMLEN(dirent) ((dirent)->d_namlen)
  29.  
  30. #ifdef HAVE_SYS_NDIR_H
  31. #include <sys/ndir.h>
  32. #endif
  33.  
  34. #ifdef HAVE_SYS_DIR_H
  35. #include <sys/dir.h>
  36. #endif
  37.  
  38. #ifdef HAVE_NDIR_H
  39. #include <ndir.h>
  40. #endif
  41.  
  42. #endif /* not DIRENT */
  43.  
  44. #endif /* not KPATHSEA_C_DIR_H */
  45.